package com.zzyl.mapper;

import com.zzyl.entity.Resource;
import com.zzyl.vo.ResourceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ResourceMapper {

    List<ResourceVo> list(ResourceVo bean);

    @Select("select data_state from sys_resource where resource_no = #{parentResourceNo}")
    String searchByParentNo(@Param("parentResourceNo") String parentResourceNo);

    void createResource(ResourceVo bean);

    void updateResource(Resource bean);

    void deleteByMenuId(@Param("resourceNo") String resourceNo);
}
